package com.ldy.chat.test.cli2;

import com.ldy.chat.cli.ChatCli;
import org.apache.thrift.transport.TTransportException;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @Auther lin DeYU
 * @Date 2021/3/31
 */
public class CliServer {


    // 负责接收服务器端转发过来的消息
    public static void main(String[] args) throws TTransportException, UnknownHostException {
       ChatCli chatCli=new ChatCli();
       chatCli.setPORT(8082);
       System.out.println("thrift客户端服务启动，地址："+ InetAddress.getLocalHost().getHostAddress()+":"+chatCli.getPORT());
       System.out.println("===============消息主界面===================");
       chatCli.getChatCliServer().serve();
    }
}
